<template>
	<view class="container">
		<view class="top">
			<image :src="userInfo.avatarUrl" mode=""></image>
			<view class="nickname">{{userInfo.nickName}}</view>
		</view>
		<view class="bottom">
			<view class="one-line">
				<view class="one-item">
					<view>8</view>
					<view>收藏的店铺</view>
				</view>
				<view class="one-item">
					<view>14</view>
					<view>收藏的商品</view>
				</view>
				<view class="one-item">
					<view>18</view>
					<view>关注的商品</view>
				</view>
				<view class="one-item">
					<view>84</view>
					<view>足迹</view>
				</view>
			</view>
			<view class="two-line">
				<view class="title">我的订单</view>
				<view class="bottom">
					<view class="two-item">
						<image id="image" src="/static/my-icons/icon1.png" mode=""></image>
						<view>代付款</view>
					</view>
					<view class="two-item">
						<image id="image" src="/static/my-icons/icon2.png" mode=""></image>
						<view>代收货</view>
					</view>
					<view class="two-item">
						<image id="image" src="/static/my-icons/icon3.png" mode=""></image>
						<view>退款/退货</view>
					</view>
					<view class="two-item">
						<image id="image" src="/static/my-icons/icon4.png" mode=""></image>
						<view>全部订单</view>
					</view>
				</view>
			</view>
			<view class="three-line">
				<view class="shipping-address">
					<view>收货地址</view>
					<uni-icons type="forward" size="20"></uni-icons>
				</view>
				<view class="relation-service">
					<view>联系客服</view>
					<uni-icons type="forward" size="20"></uni-icons>
				</view>
				<view class="quit-login">
					<view>退出登录</view>
					<uni-icons type="forward" size="20"></uni-icons>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {mapState} from 'vuex';
	export default {
		name:"login-after",
		data() {
			return {
				
			};
		},
		computed:{
			...mapState('users',['userInfo']),
		}
	}
</script>

<style lang="scss" scoped>
page ,.container{
	width: 100%;
	height: 100%;
	background-color: #F4F4F4;
	.top{
		width: 100%;
		height: 500rpx;
		background-color: #C00000;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		image{
			width: 200rpx;
			height: 200rpx;
			display: block;
			border-radius: 50%;
			box-shadow: 0 1px 10px white;
		}
		.nickname{
			color: white;
			font-size: 60rpx;
		}
	}
	.bottom{
		width: 95%;
		margin: auto;
		background-color: #F4F4F4;
		height: 600rpx;
		position: relative;
		top:-20rpx;
		z-index: 99;
		border-radius: 10rpx;
		font-weight: bold;
		.one-line{
			width: 100%;
			height: 80rpx;
			background-color: white;
			display: flex;
			justify-content: space-between;
			align-items: center;
			border-radius: 10rpx;
			color: black;
			font-size: 24rpx;
			margin-bottom: 10rpx;
			.one-item{
				width: 25%;
				height: 100%;
				display: flex;
				justify-content: center;
				align-items: center;
				flex-direction: column;
			}
		}
		.two-line{
			width: 95%;
			background-color: white;
			border-radius: 10rpx;
			color: black;
			font-size: 24rpx;
			background-color:#FFFFFF;
			padding: 0 20rpx;
			margin-bottom: 10rpx;
			.title{
				width: 100%;
				line-height: 60rpx;
				font-size:28rpx;
			}
			.bottom{
				height: 190rpx;
				width: 100%;
				display: flex;
				justify-content: space-around;
				align-items: center;
				background-color: #FFFFFF;
				.two-item{
					width: 17%;
					image{
						width: 100rpx;
						height: 100rpx;
					}
				}
			}
		}
		.three-line{
			width: 95%;
			background-color: white;
			border-radius: 10rpx;
			color: black;
			font-size: 24rpx;
			background-color:#FFFFFF;
			padding: 0 20rpx;
			.shipping-address,.relation-service,.quit-login{
				line-height:80rpx;
				width: 100%;
				display: flex;
				justify-content: space-between;
				align-items: center;
			}
		}
	}
}
</style>
